// baseui/nav-bar/index.js
const globalData = getApp().globalData

Component({
	options: {
		// 设置使用具名插槽
		multipleSlots: true
	},

	properties: {
		title: {
			type: String,
			value: '默认标题'
		}
	},
	data: {
		statusBarHeight: globalData.statusBarHeight,
		navBarHeight: globalData.navBarHeight
	},
	methods: {
		handleLeftBtn() {
			this.triggerEvent('click')
		}
	}
})
